<?php
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2023 https://www.gxgyl.com All rights reserved.

// +----------------------------------------------------------------------
// | Author: Liuyu
// +----------------------------------------------------------------------
declare (strict_types = 1);

namespace app\api\controller\shiyao;

use app\api\controller\Controller;
use cores\exception\BaseException;

use think\response\Json;
use app\api\model\shiyao\ProjectPayCategory as CategoryModel;

/**
 * 管理
 * Class
 * @package app\api\controller
 */
class Category extends Controller {

	/**
	 * 列表
	 * @return Json
	 * @throws BaseException
	 * @throws \think\db\exception\DataNotFoundException
	 * @throws \think\db\exception\DbException
	 * @throws \think\db\exception\ModelNotFoundException
	 */
	public function list(): Json {

		$model = new CategoryModel;
		$list = $model->getList($this->request->param());

		return $this->renderSuccess(compact('list'));
	}

}